<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改【请填写功能名称】')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-dispatch-edit" th:object="${veDispatch}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">车辆id：</label>
                <div class="col-sm-8">
                    <input name="vehicleId" th:field="*{vehicleId}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">驾驶员id：</label>
                <div class="col-sm-8">
                    <input name="driverId" th:field="*{driverId}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">客户id：</label>
                <div class="col-sm-8">
                    <input name="customerId" th:field="*{customerId}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">目的地id：</label>
                <div class="col-sm-8">
                    <input name="destinationId" th:field="*{destinationId}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">流程id：</label>
                <div class="col-sm-8">
                    <input name="flowInstantId" th:field="*{flowInstantId}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">图片：</label>
                <div class="col-sm-8">
                    <input name="picture" th:field="*{picture}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">是否同意：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('sys_user_agree')}">
                        <input type="radio" th:id="${dict.dictCode}" name="agree" th:value="${dict.dictValue}"
                               th:checked="${dict.default}">
                        <label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>

            <div class="col-md-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">批注：</label>
                    <div class="col-sm-9">
                        <textarea type="text" name="comment" class="form-control" placeholder="请输入批注内容" required></textarea>
                    </div>
                </div>
            </div>
        </form>
        <ul class="nav nav-tabs" id="myTab">
            <li class="active"><a href="#tab1" data-toggle="tab">审批结果</a></li>
            <!-- <li><a href="#tab2" data-toggle="tab">基本信息2</a></li>-->
        </ul>


        <div class="tab-content">

            <div class="tab-pane active" id="tab1">
                <!-- 在这里添加基本信息的内容 -->
                <table class="table table-bordered">
                    <thead>
                    <tr>
                        <th>编号</th>
                        <th>任务的办理人</th>
                        <th>任务的名称</th>
                        <th>任务的节点</th>
                        <th>批注</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr th:each="taskComment,var : ${taskCommentVoList}">
                        <td th:text="${var.count}"></td>
                        <td th:text="${taskComment.userName}"></td>
                        <td th:text="${taskComment.taskName}"></td>
                        <td th:text="${taskComment.taskKeyId}"></td>
                        <td th:text="${taskComment.message}"></td>
                    </tr>

                    <!-- 添加更多行数据或使用循环来生成行数据 -->
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/dispatch";
        $("#form-dispatch-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/editnoauthdata", $('#form-dispatch-edit').serialize());
            }
        }
    </script>
</body>
</html>